#define _CRT_SECURE_NO_WARNINGS 1

#include<stdio.h>

int main()
{
	int arr[10] = { 0 };
	int len = sizeof(arr) / sizeof(int);
	int a = 0;
	for (int i = 0; i < len; i++)
	{
		scanf("%d",&a);
		arr[i] = a;
	}
	for (int j = len - 1; j >= 0; j--)
	{
		printf("%d ", arr[j]);
	}
	return 0;
}